focus

abstract fun focus()

Sets focus on this element, if it can be focused. The focused element is the element which will receive keyboard and similar events by default.

This method does nothing if the browser instance where the web page with this element is loaded is not focused. To programmatically focus the browser instance use the focus method.

Since

7.1

Throws

when this instance is closed